home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Tampa Bay Amiga Group / TBAG - Tampa Bay Amiga Group's Disk of the Month #42 (1990)(Merlin's Software - Amiganuts United)(PD).zip / TBAG - Tampa Bay Amiga Group's Disk of the Month #42 (1990)(Merlin's Software - Amiganuts United)(PD).adf / Echo.a < prev    next >
Text File  |  1990-03-04  |  3KB  |  64 lines

  1.  
  2. ; Sample script by George Kerber to demonstrate the new echo command
  3. ; Version 1.01    08/28/89     Modified 09/16/89
  4. copy :Utilities/echo to ram:
  5. cd ram:
  6. echo -c -d 1 -m 4 "This script will show two examples of what my new echo command"
  7. echo -m 4 "can do, *3pay attention*4....  *n*n"
  8. echo -m 4 "In the old AmigaDOS days you could do only this:"
  9. echo -m 4 "1> echo *qtest string*q"
  10. echo -d 1 -m 4 "Now lines like this are possible: "
  11. echo -m 4 "1> echo -c -p 10,13 -a 5 -n *q******** test **3string**1 *********q"
  12. echo -d 1 -m 4 "Starting at the left,"
  13. echo -d 1 -m 4 " -c clears the screen."
  14. echo -m 4 " -p 10,13 moves the cursor to character position 10, line 13."
  15. echo -m 4 " -a 5 sets characters to bold."
  16. echo -m 4 " -n prevents a newline after printing the string (this is the same"
  17. echo -m 4 "    as NOLINE in AmigaDOS echo, my echo supports NOLINE too)."
  18. echo -m 4 " **3 is an escape value setting the color to *3color 3*1."
  19. echo -m 4 " **1 is an escape value setting the color to color 1."
  20. echo -d 1 -n -x "Ready?   Press <return> to execute this example."
  21. ask " "
  22. echo -c -p 10,13 -a 5 -n "**** test *3string*1 **** "
  23. wait 1
  24. echo -m 4 -n "Well*3.*2.*1.*3.*2.*1."
  25. wait 1
  26. echo -p 0,21 -a 3,@ -n -x " Press <return> to continue. "
  27. ask " "
  28. lab 20
  29. echo -c -d 2 -m 4 "Or how about blocking part of the screen with color?"
  30.  
  31. echo -p 10,6
  32. echo -p 10,18 -a @ "                                                         *n*n"
  33. echo -p 10,8 -a @ "                                                         "
  34. echo -p 10,9 -a @ "       *3With orange text....      *5bolded*4*@                  "
  35. echo -p 10,10 -a @ "                                                         "
  36. echo -p 10,12 -a @ "                                                         "
  37. echo -p 10,7 -a @ "                                                         "
  38. echo -p 10,13 -a @ "       *0With blue text......          *7italics*4*@             "
  39. echo -p 10,14 -a @ "                                                         "
  40. echo -p 10,15 -a @ "      *7Italics*4*@    *5Bold*4*@    *6Underline*4*@  *6*7*5ALL THREE*4*@            "
  41. echo -p 10,16 -a @ "                                                         "
  42. echo -p 10,11 -a @ "       *1With white text.....              *6underlined*4*@      "
  43. echo -p 10,17 -a @ "              *IPress <return> to continue....*4*@             "
  44. echo -p 55,17 -n -k
  45.  
  46.  
  47. ask ""
  48. echo -p 10,16 -a @ "                                                         "
  49. echo -p 10,17 -a @ "                                                         "
  50. echo -p 10,18 -a @ "                                                         "
  51.  echo -p15,8 -a # "                                                "
  52.  echo -p15,9 -a # "                                                "
  53. echo -p15,10 -a # "        *2*I*5*qMay I suggest?*q*4*#                        "
  54. echo -p15,11 -a # "                                                "
  55. echo -p15,12 -a # "                                                "
  56. echo -p15,13 -a 0,# "        Take a look at this batch file          "
  57. echo -p15,14 -a #,0 "        to see *Uhow it's done*4*#....                "
  58. echo -p15,15 -a # "                                                "
  59. echo -p15,16 -a # "         *5Good Luck!*4*#                             "
  60. echo -p15,17 -a # "                                                "
  61. echo -p0,20
  62. wait 5
  63. endcli
  64.